-- GENERATED SPELL FOR [Phantasmal Water] --


function spell0_27653(pUnit, Event) --@Water Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(37924,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27653', 1500, 1)
end

function spell1_27653(pUnit, Event) --@Water Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(59266,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27653', 1500, 1)
end

function Sorts_27653(pUnit, Event)
local choix_sorts_27653 = math.random(0, 1)
if choix_sorts_27653 == 0 then
pUnit:RegisterEvent('spell0_27653', 1, 1)
end
if choix_sorts_27653 == 1 then
pUnit:RegisterEvent('spell1_27653', 1, 1)
end
end

function mob27653_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27653', math.random(1500, 3000), 1)
end

function mob27653_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27653_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27653_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27653, 1, 'mob27653_Action')
RegisterUnitEvent(27653, 2, 'mob27653_Leave')
RegisterUnitEvent(27653, 3, 'mob27653_Kill')
RegisterUnitEvent(27653, 4, 'mob27653_Die')
